<?php

/**
 * @file classes/site/Version.inc.php
 *
 * Copyright (c) 2000-2012 John Willinsky
 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
 *
 * @class Version
 * @ingroup site
 * @see VersionDAO
 *
 * @brief Describes system version history.
 */


class CTKHO extends DataObject {

	/**
	 * Constructor.
	 */

	function CTKHO() {
		parent::DataObject();
		// Initialize object
	
	}


	function getid() {		
		return $this->getData('id');
	}

	function getidphieu() {		
		return $this->getData('idphieu');
	}

	function setidphieu($id) {
		return $this->setData('idphieu', $id);
	}

	function getsoct() {		
		return $this->getData('soct');
	}
	function setsoct($soct) {
		return $this->setData('soct', $soct);
	}

	function getsosr() {		
		return $this->getData('sosr');
	}
	function setsosr($data) {
		return $this->setData('sosr', $data);
	}

	function getngct() {
		return $this->getData('ngct');
	}
	function setngct($ngct) {
		return $this->setData('ngct', $ngct);
	}



	function getdiengiai() {
		return $this->getData('diengiai');
	}
	function setdiengiai($diengiai) {
		return $this->setData('diengiai', $diengiai);
	}
	

	function getmakhox() {
		return $this->getData('makhox');
	}
	function setmakhox($data) {
		return $this->setData('makhox', $data);
	}
	
	function getmadvno() {
		return $this->getData('madvno');
	}

	function setmadvno($data) {
		return $this->setData('madvno', $data);
	}

//	function getmavt() {
//		return $this->getData('mavt');
//	}
//	function setmavt($data) {
//		return $this->setData('mavt', $data);
//	}
//
//	function getsl() {
//		return $this->getData('SL');
//	}
//	function setsl($data) {
//		return $this->setData('sl', $data);
//	}
//
//	function getdgb() {
//		return $this->getData('dgb');
//	}
//	function setdgb($data) {
//		return $this->setData('dgb', $data);
//	}
//
//	function getsotienvnb() {
//		return $this->getData('sotienvnb');
//	}
//	function setsotienvnb($data) {
//		return $this->setData('sotienvnb', $data);
//	}
//





	function getlydo() {
		return trim($this->getData('lydo'));
	}
	function setlydo($data) {
		return $this->setData('lydo', $data);
	}
	
	function gettkno() {
		return trim($this->getData('tkno'));
	}
	function settkno($tk) {
		return $this->setData('tkno', $tk);
	}
	
	function gettkco() {
		return trim($this->getData('tkco'));
	}
	function settkco($tk) {
		return $this->setData('tkco', $tk);
	}
	
	function getmacttkno() {
		return trim($this->getData('macttkno'));
	}
	function setmacttkno($data) {
		return $this->setData('macttkno', $data);
	}

	function getmacttkco() {
		return trim($this->getData('macttkco'));
	}
	function setmacttkco($data) {
		return $this->setData('macttkco', $data);

	}
	function getmacttk() {
		return trim($this->getData('macttk'));
	}
	function setmacttk($data) {
		return $this->setData('macttk', $data);

	}



	function gettendvno() {
		return trim($this->getData('tendvno'));
	}
	function settendvno($data) {
		return $this->setData('tendvno', $data);
	}

	function getmsthueno() {
		return trim($this->getData('msthueno'));
	}
	function setmsthueno($data) {
		return $this->setData('msthueno', $data);
	}

	function getdiachino() {
		return trim($this->getData('diachino'));
	}
	function setdiachino($data) {
		return $this->setData('diachino', $data);
	}

	function gettk_dv() {
		return trim($this->getData('tk_dv'));
	}
	function settk_dv($data) {
		return $this->setData('tk_dv', $data);
	}

	function gettk_thue() {
		return trim($this->getData('tk_thue'));
	}
	function settk_thue($data) {
		return $this->setData('tk_thue', $data);
	}

	function getmavt() {
		return trim($this->getData('mavt'));
	}
	function setmavt($data) {
		return $this->setData('mavt', $data);
	}

	function getsolo() {
		return trim($this->getData('solo'));
	}
	function setsolo($data) {
		return $this->setData('solo', $data);
	}

	function gethandung() {
		return trim($this->getData('handung'));
	}
	function sethandung($data) {
		return $this->setData('handung', $data);
	}

	function getsl() {
		return trim($this->getData('sl'));
	}
	function setsl($data) {
		return $this->setData('sl', $data);
	}

	function getdgb() {
		return trim($this->getData('dgb'));
	}
	function setdgb($data) {
		return $this->setData('dgb', $data);
	}

	function getsotienvnb() {
		return trim($this->getData('sotienvnb'));
	}
	function setsotienvnb($data) {
		return $this->setData('sotienvnb', $data);
	}

	function gettlck() {
		return trim($this->getData('tlck'));
	}
	function settlck($data) {
		return $this->setData('tlck', $data);
	}

	function gettk_ck() {
		return trim($this->getData('tk_ck'));
	}
	function settk_ck($data) {
		return $this->setData('tk_ck', $data);
	}

	function gettk_dt() {
		return trim($this->getData('tk_dt'));
	}

	function settk_dt($data) {
		return $this->setData('tk_dt', $data);
	}




	function getsotienvn() {
		return $this->getData('sotienvn');
	}

	function setsotienvn($sotienvn) {
		return $this->setData('sotienvn', $sotienvn);
	}



	function getmatk() {
		return trim($this->getData('matk'));
	}
	function setmatk($matk) {
		return $this->setData('matk', $matk);
	}

	function gettentk() {
		return trim($this->getData('tentk'));
	}
	function settentk($tentk) {
		return $this->setData('tentk', $tentk);
	}

	function getdknovn() {
		return $this->getData('dknovn');
	}

	function getdknont() {
		return $this->getData('dknovn');
	}


	function setdknovn($data) {
		return $this->setData('dknovn', $data);
	}

	function setdknont($data) {
		return $this->setData('dknont', $data);
	}

	function getsoduC($data) {
		return -$this->getData('sotienvn')+$data;
	}

	function getsoduN($data) {
		return $this->getData('sotienvn')+$data;
	}

	function getsoduCnt($data) {
		return -$this->getData('sotiennt')+$data;
	}

	function getsoduNnt($data) {
		return $this->getData('sotiennt')+$data;
	}

	function getsps($data) {
		return $this->getData('sotienvn')+$data;
	}

	function getspsnt($data) {
		return $this->getData('sotiennt')+$data;
	}

	function gettkdu() {
		return $this->getData('tkdu');	
	}
	function settkdu($tkno, $tkco, $loaitk) {
		if (strpos($tkno, $gctk) ==0)
			$this->setData('tkdu', $tkco);
		else
			$this->setData('tkdu', $tkno);
	}
	function gettk() {
		return $this->getData('tk');	
	}

	function settk($data) {
		return $this->setData('tk', $data);	
	}

	function getnoco() {
		return $this->getData('noco');
	}
	function setnoco($tkno, $tkco, $loaitk) {
		if (strpos($tkno, $loaitk) ==0)
			$this->setData('noco', "N");
		else
			$this->setData('noco', "C");
	}


	
}

?>
